<template>
<div class='app-container'>
   <el-form
      size="mini"
      :inline="true"
      label-width="150px"
      :model="formInline"
      class="demo-form-inline"
      :rules="rules"
    >
      <el-form-item label="Location" prop="region"> 
        <el-select v-model="formInline.region" placeholder="Location">
          <el-option label="区域一" value="shanghai"></el-option>
          <el-option label="区域二" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="Location" prop="region"> 
        <el-select v-model="formInline.region" placeholder="Location">
          <el-option label="区域一" value="shanghai"></el-option>
          <el-option label="区域二" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item label="Location" prop="region"> 
        <el-select v-model="formInline.region" placeholder="Location">
          <el-option label="区域一" value="shanghai"></el-option>
          <el-option label="区域二" value="beijing"></el-option>
        </el-select>
      </el-form-item>
      <el-form-item>
        <el-button size="mini" type="info" icon="el-icon-search" >Search</el-button>
        <el-button size="mini" type="info" icon="el-icon-plus">Add Control Plan</el-button>
      </el-form-item>
   </el-form>

   <el-table :data="tableData" size="mini" border style="width: 100%;" max-height="550">
      <el-table-column type="selection" width="55"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
      <el-table-column prop="date" label="RunNum"></el-table-column>
    </el-table>
    <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage4"
      :page-sizes="[100, 200, 300, 400]"
      :page-size="100"
      layout="total, sizes, prev, pager, next, jumper"
      :total="400">
    </el-pagination>
</div>
</template>

<script>
export default {
  methods: {
      handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      }
    },
    data() {
    return {
      currentPage1: 5,
        currentPage2: 5,
        currentPage3: 5,
        currentPage4: 4,
      formInline: {
        user: "",
        region: ""
      },
      controlPlanList: [],
      dataForm: {
        locationName: "", // Optional
        moduleName: "", // Optional
        toolGroupId: null,
        chamberGroupId: null,
        subRecipes: [],
        lotIds: [],
        waferIds: [],
        mesProducts: [],
        mesStages: [],
        mesLots: [],
        mesWafers: [],
        mesFlowRecipes: [],
        toolIds: [], // Optional
        chamberIds: [], // Optional
        datetimerange: [], // Optional, 开始日期, 结束日期
        selectRecent: 100,
        controlPlanId: null, // Optional
        chartReviewType: "indicator" // ChartReview 要显示的 Chart 类型: Indicator / RawTrace
      },
      tableData: [
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄"
        },
        {
          date: "2016-05-02",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1518 弄"
        },
        {
          date: "2016-05-04",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1517 弄"
        },
        {
          date: "2016-05-01",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1519 弄"
        },
        {
          date: "2016-05-03",
          name: "王小虎",
          address: "上海市普陀区金沙江路 1516 弄"
        }
      ],
       rules: {
          region: [
            { required: true, trigger: 'blur' }
          ]
          },
    };
  },
}
</script>
<style lang='scss' scoped>
</style>